home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: kanze@gabi-soft.fr (J. Kanze)
- Newsgroups: comp.lang.c,comp.lang.c.moderated,comp.lang.c++
- Subject: Re: Is C/C++ convertor available ???
- Date: 11 Apr 1996 13:54:07 -0500
- Organization: GABI Software, Sarl.
- Sender: clc@solutions.solon.com
- Approved: clc@solutions.solon.com
- Message-ID: <4kjkgf$bn2@solutions.solon.com>
- References: <4k5vt7$a3c@solutions.solon.com> <4kcmib$ova@solutions.solon.com>
- <4kg88m$ig8@solutions.solon.com>
- NNTP-Posting-Host: solutions.solon.com
-
- In article <4kg88m$ig8@solutions.solon.com> ohara@tiac.ent (William
- O'Hara) writes:
-
- |> >You heard wrong. g++ is a C++ compiler, not a C++ to C
- |> translator, and it has
- |> >no such option.
-
- |> I DO NOT use gcc. Yet I wouldn't doubt that
- |> there was a feature.. After all C++ is an extension to
- |> C which is theortically an extension to itself. :)
- |> Classes and such all boil down to structures.. Don't
- |> ever get the idea that C++ is its own language. It goes
- |> through a tier of translation before compilation.
-
- This is complete bullshit. C++ is a language derived from C, in a way
- vaguely resembling how French derived from Latin. While it shares a
- certain number of constructs with C (enough so that a significant number
- of C programs are also legal C++), it is very definitly a distinct
- language.
-
- And I'm curious as to what is meant by `going through a tier of
- translation'. The preprocessor is common to both C and C++.
-
- As for translating C++ to C... Older Cfront compilers used C as an
- intermediate language (as do some implementations of Eiffel or Scheme).
- As far as I know, this is not the case of any currently available
- compiler. Certainly neither Sun CC nor g++ have an option to generate
- C, nor have any intermediate step which uses C. (I might add that one
- of the reasons why Novell stopped development on CFront is that there
- are certain C++ constructs, like exceptions, which simply cannot be
- efficiently modeled in C.)
- --
- James Kanze (+33) 88 14 49 00 email: kanze@gabi-soft.fr
- GABI Software, Sarl., 8 rue des Francs Bourgeois, 67000 Strasbourg, France
- Conseils en informatique industrielle --
- -- Beratung in industrieller Datenverarbeitung
-